package com.itheima.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.util.Date;

/**
 * @Description  
 * @Author  Hunter
 * @Date 2020-08-03 
 */

@Setter
@Getter
@ToString
@Entity
@Table ( name ="t_file" )
public class File  implements Serializable {

	private static final long serialVersionUID =  9045113341002880594L;

	/**
	 * 唯一uid
	 */
   	@Column(name = "uid" )
	@Id
	private String uid;

	/**
	 * 旧文件名
	 */
   	@Column(name = "file_old_name" )
	private String fileOldName;

	/**
	 * 文件名
	 */
   	@Column(name = "pic_name" )
	private String picName;

	/**
	 * 文件地址
	 */
   	@Column(name = "pic_url" )
	private String picUrl;

	/**
	 * 文件扩展名
	 */
   	@Column(name = "pic_expanded_name" )
	private String picExpandedName;

	/**
	 * 文件大小
	 */
   	@Column(name = "file_size" )
	private Long fileSize;

	/**
	 * 文件分类uid
	 */
   	@Column(name = "file_sort_uid" )
	private String fileSortUid;

	/**
	 * 管理员uid
	 */
   	@Column(name = "admin_uid" )
	private String adminUid;

	/**
	 * 用户uid
	 */
   	@Column(name = "user_uid" )
	private String userUid;

	/**
	 * 状态
	 */
   	@Column(name = "status" )
	private Integer status;

	/**
	 * 创建时间
	 */
   	@Column(name = "create_time" )
	private Date createTime;

	/**
	 * 更新时间
	 */
   	@Column(name = "update_time" )
	private Date updateTime;

	/**
	 * 七牛云地址
	 */
   	@Column(name = "qi_niu_url" )
	private String qiNiuUrl;

}
